<?php if(!defined('PIGCMS_PATH')) exit('deny access!');?>
<!DOCTYPE html>
<html class="no-js" lang="zh-CN">
	<head>
		<meta charset="utf-8"/>
		<meta name="keywords" content="<?php echo $config['seo_keywords'];?>" />
		<meta name="description" content="<?php echo $config['seo_description'];?>" />
		<meta name="HandheldFriendly" content="true"/>
		<meta name="MobileOptimized" content="320"/>
		<meta name="format-detection" content="telephone=no"/>
		<meta http-equiv="cleartype" content="on"/>
		<link rel="icon" href="<?php echo $config['site_url'];?>/favicon.ico" />
		<title>订单付款信息</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<link rel="stylesheet" href="<?php echo TPL_URL;?>css/base.css"/>
		<link rel="stylesheet" href="<?php echo TPL_URL;?>css/cashier.css"/>
		<script src="<?php echo STATIC_URL;?>js/jquery.min.js"></script>
		<script src="<?php echo TPL_URL;?>js/base.js"></script>
		<script>var orderNo='<?php echo $nowOrder['order_no_txt'];?>';</script>
		<script src="<?php echo TPL_URL;?>js/order_paid.js"></script>
	</head>
	<body>
		<div class="container">
			<div class="content">
				<div class="paid-status success">
					<?php 
					if($nowOrder['status'] > 1){
					?>
						<div class="header center">
							<h2><i class="success-icon"></i>订单支付成功</h2>
						</div>
						<div class="body block block-list">
							<div class="block-item">
								<h3>你的支付信息</h3>
							</div>
							<div class="block-item">
								<ul class="block block-form block-border-none">
									<li class="block-item">
										<label>付款金额：</label>
										<span class="price">￥<?php echo $nowOrder['pay_money']?><?php if ($nowOrder['cash_point'] > 0) { ?>&nbsp;&nbsp;+ <?php echo $nowOrder['cash_point']; ?> <?php echo $point_alias; ?><?php } ?></span>
									</li>
									<li class="block-item">
										<label>订单编号：</label>
										<span><?php echo $nowOrder['order_no_txt']?></span>
									</li>
									<li class="block-item">
										<label>支付方式：</label>
										<span><?php echo $nowOrder['pay_type_txt']?></span>
									</li>
								</ul>
							</div>
						</div>
						<div class="action-container">
							<?php 
							if ($nowOrder['shipping_method'] == 'send_other' && $nowOrder['send_other_type'] != 2) {
							?>
								<button style="margin-top:0; type=" button"="" class="btn btn-block btn-large btn-green js-open-share">分享给小伙伴</button>
							<?php 
							}
							
							if ($nowOrder['type'] == 6) {
							?>
								<button style="margin-top:0; type=" button"="" class="btn btn-block btn-large btn-yellow js-open-share">分享拉人参团</button>
							<?php 
							}
							if (empty($nowOrder['uid'])) {
							?>
								<a class="btn btn-block btn-green js-save">保存订单享受售后</a>
							<?php 
							}
							if ($nowOrder['user_order_id'] == 0 && (!empty($nowOrder['session_id']) && $nowOrder['session_id'] == session_id()) || (!empty($nowOrder['uid']) && $nowOrder['uid'] == $wap_user['uid'])) {
							?>
								<a class="btn btn-block " href="./order.php?orderid=<?php echo $nowOrder['order_id'];?>">查看订单详情</a>
							<?php 
							}
							?>
						</div>
					<?php 
					} else { ?>
						<div class="header center">
							<h2><i class="warn-icon"></i>订单还未支付</h2>
						</div>
						<?php 
						if ($nowOrder['user_order_id'] == 0) {
						?>
							<div class="action-container">
								<a class="btn btn-block btn-green" href="./pay.php?id=<?php echo $nowOrder['order_no_txt'];?>">前往付款</a>
							</div>
					<?php 
						} else {
					?>
							<div class="center action-tip">请登录店铺后台，重新扫码给供货商付款</div>
					<?php 
						}
					}
					?>
				</div>
				<div class="center action-tip">支付完成后，如需退换货请及时联系卖家</div>
			</div>
			<div id="js-share-guide" class="js-fullguide fullscreen-guide hide" style="font-size: 16px; line-height: 35px; color: #fff; text-align: center;"><span class="js-close-guide guide-close">×</span><span class="guide-arrow"></span><div class="guide-inner">请点击右上角<br>通过【发送给朋友】功能<br>把礼物分享给小伙伴哟～</div></div>
			<?php $noFooterLinks=true;include display('footer');?>
		</div>
		<?php echo $shareData;?>
	</body>
</html>